package com.tpo;


import java.util.Calendar;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class Tiempo extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);

/*
final TextView txtHour = (TextView)findViewById(R.id.TxtHour);
final TextView txtMinutes = (TextView)findViewById(R.id.TxtMinute);
final TextView txtSeconds = (TextView)findViewById(R.id.TxtSeconds);
final TextView txtMilliseconds = (TextView)findViewById(R.id.TxtMilliseconds);

txtHour.setText(hora.toString());
txtMinutes.setText(minutos.toString());
txtSeconds.setText(segundos.toString());
txtMilliseconds.setText(milisegundos.toString()); 
*/

}
public String mostrarHoraConcatenada()
{
	Integer hora = new Integer(Calendar.HOUR_OF_DAY);
	Integer minutos = new Integer(Calendar.MINUTE);
	Integer segundos = new Integer(Calendar.SECOND);
	Integer milisegundos = new Integer(Calendar.MILLISECOND);
	String horaconcatenada=new String();
	horaconcatenada= hora.toString()+":"+minutos.toString()+":"+segundos.toString();
	return horaconcatenada;
}
}